<?php
$config['server'] = [
    'host' => '0.0.0.0',
    // 'port' => getenv('SERVER_WS_PORT'),
    'port' => 9523,
    // 'url' => getenv('SERVER_WS_PROTOCAL') . '://' . getenv('SERVER_URL') . ':' . getenv('SERVER_WS_PORT'),
    'url' => 'ws://webim.beesoft.ink:9523',
    // 'origin' => getenv('SERVER_WEB_PROTOCAL') . '://' . getenv('SERVER_URL'),
    'origin' => 'http://webim.beesoft.ink',
];
$config['swoole'] = [
    'log_file' => ROOT_PATH . '/log/swoole.log',
    'worker_num' => 1,
    'max_request' => 0,
    'task_worker_num' => 1,
    'daemonize' => 0,
];
$config['webim'] = [
    'log_file' => ROOT_PATH . '/log/webim.log',
    'send_interval_limit' => 2, //只允许1秒发送一次
];
$config['storage'] = [
    'history_num' => 100,
];
return $config;